package com.zhentao.util;



public class ThreadLoadUser {
    private final static ThreadLocal<String>  USER_NAME=new ThreadLocal<>();

    public static void set(String name){
        USER_NAME.set(name);
    }
    public static String get(){
        return USER_NAME.get();
    }
    private final static ThreadLocal<Long>  USER_ID=new ThreadLocal<>();

    public static void setId(Long id){
        USER_ID.set(id);
    }
    public static Long getId(){
        return USER_ID.get();
    }
}
